package com.tq.jdk7;

/**
 * tq1
 * tq改2
 * xzw01
 * lxq01
 * xzw02
 * create:2020-06-28 16:18  @author:mytq110   @email:mytquery@163.com
 */
public class ObjKey {
    private  Integer   id;
    private   String   name;
    private   String  descr;

    /**
     * tq2改的第二次
     * xzw02 注释
     */
    public ObjKey(){}
    public ObjKey(Integer id, String name, String descr) {
        this.id = id;
        System.out.println(5347);
        this.name = name;
        this.descr = descr;
    }

    /*@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ObjKey objKey = (ObjKey) o;

        if (!id.equals(objKey.id)) return false;
        if (!name.equals(objKey.name)) return false;
        return descr.equals(objKey.descr);
    }*/

    @Override
    public int hashCode() {
        int result = id.hashCode();
        result = 31 * result + name.hashCode();
        result = 31 * result + descr.hashCode();
        return result;
    }
}
